]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
windowManager: Set up unfullscreen/app-switch gestures in the capture phase
authorCarlos Garnacho <carlosg@gnome.org>
Mon, 27 Sep 2021 20:45:47 +0000 (22:45 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Wed, 24 Nov 2021 22:33:18 +0000 (22:33 +0000)
Use the new API to specify the gesture phase.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1992>

js/ui/windowManager.js

index caaecec410ad436f62b3691b399a6eacff5e4cc7..72cadd9ac0a25567eb53edcad32c9d2d82f57daa 100644 (file)
@@ -936,7 +936,7 @@ var WindowManager = class {
 
         let appSwitchAction = new AppSwitchAction();
         appSwitchAction.connect('activated', this._switchApp.bind(this));
-        global.stage.add_action(appSwitchAction);
+        global.stage.add_action_full('app-switch', Clutter.EventPhase.CAPTURE, appSwitchAction);
 
         let mode = Shell.ActionMode.ALL & ~Shell.ActionMode.LOCK_SCREEN;
         let topDragAction = new EdgeDragAction.EdgeDragAction(St.Side.TOP, mode);
@@ -954,7 +954,7 @@ var WindowManager = class {
         global.display.connect('notify::focus-window', updateUnfullscreenGesture);
         global.display.connect('in-fullscreen-changed', updateUnfullscreenGesture);
 
-        global.stage.add_action(topDragAction);
+        global.stage.add_action_full('unfullscreen', Clutter.EventPhase.CAPTURE, topDragAction);
 
         this._workspaceAnimation =
             new WorkspaceAnimation.WorkspaceAnimationController();